//
//  TestFormStackCell.swift
//  CooperSwift_Example
//
//  Created by 计海峰 on 2021/12/9.
//  Copyright © 2021 CocoaPods. All rights reserved.
//

import Foundation
import UIKit
import CooperSwift
import RxSwift

class TestFormStackCellModel: NSObject, FormStackCellModelProtocol {
    
    var model: Any?
    
    required init(_ model: Any?) {
        self.model = model
    }
    
    func configLeftView0(_ view: UIView) {
        view.isHidden = false
        view.snp.makeConstraints {
            $0.height.width.equalTo(4)
        }
    }

    func configLeftLB1(_ lb: UILabel) {
        lb.isHidden = false
        lb.text = "测试"
        lb.snp.makeConstraints {
            $0.height.width.equalTo(36)
        }
    }

    func configLeftLB2(_ lb: UILabel) {
        lb.isHidden = false
        lb.text = "*"
        lb.textColor = .red
        lb.snp.makeConstraints {
            $0.height.width.equalTo(18)
        }
    }
    
    func configCenterContentTF(_ tf: UITextField) {
        tf.isHidden = false
        tf.placeholder = "请输入"
    }
    
    func configRightView0(_ view: UIView) {
        view.isHidden = false
        view.snp.makeConstraints {
            $0.height.width.equalTo(4)
        }
    }
    
    func cellCls() -> UITableViewCell.Type {
        return TableFormStackCell.self
    }
    
}
